<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>Module</cContentSchemaName>
				<cContentXmlBrief>
					<Content position="" moduleType="GoogleMap" box="" title="" link="" linkType="internal" >
						<APIKey/>
						<AjaxAPIKey/>
						<Zoom>13</Zoom>
						<Control>Large</Control>
						<View>G_NORMAL_MAP</View>
						<TypeButtons>On</TypeButtons>
						<Location lat="" long="" geoCode="" center="true">
							<label/>
						</Location>
					</Content>
				</cContentXmlBrief>
				<cContentXmlDetail/>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
			</tblContent>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind nodeset="tblContent">
			<bind id="cModuleTitle" nodeset="cContentName" required="false()" type="string"/>
			<bind id="dPublishDate" nodeset="dPublishDate" required="false()" type="string"/>
			<bind id="dExpireDate" nodeset="dExpireDate" required="false()" type="string"/>
			<bind id="nStatus" nodeset="nStatus" required="true()" type="string"/>
			<bind id="cDescription" nodeset="cDescription" required="false()" type="string"/>
			<bind nodeset="cContentXmlBrief/Content">
        <bind id="cPosition" nodeset="@position" required="true()" type="string"/>
				<bind id="cModuleType" nodeset="@moduleType" required="true()" type="string"/>
				<bind id="cModuleBox" nodeset="@box" required="false()" type="string"/>
				<bind id="cModuleTitle" nodeset="@title" required="false()" type="string"/>
				<bind id="cModuleLink" nodeset="@link" required="false()" type="string"/>
        <bind id="cLinkType" nodeset="@linkType" required="false()" type="string"/>
				<bind id="cAPIKey" nodeset="APIKey" required="true()" type="string"/>
				<bind id="cAjaxAPIKey" nodeset="AjaxAPIKey" required="true()" type="string"/>
				<bind id="nZoom" nodeset="Zoom" required="true()" type="number"/>
				<bind id="cControl" nodeset="Control" required="true()" type="string"/>
				<bind id="cView" nodeset="View" required="false()" type="string"/>
				<bind id="bTypeButtons" nodeset="TypeButtons" required="true()" type="string"/>
				<bind id="nLat" nodeset="Location/@lat" required="false()" type="number"/>
				<bind id="nLong" nodeset="Location/@long" required="false()" type="number"/>
				<bind id="cGeoCode" nodeset="Location/@geoCode" required="false()" type="string"/>
				<bind id="cLabel" nodeset="Location/label" required="false()" type="string"/>
			</bind>
		</bind>
	</model>
	<group ref="EditContent" class="2col">
		<label>Google map module - this is an old Google map, why not try adding our new one.</label>
		<group>
			<group ref="Settings" class="leftSettings">
				<!-- These hidden fields and bindings are required for the component-->
				<input bind="nContentKey" class="hidden">
					<label>ContentId</label>
				</input>
				<input bind="cModuleType" class="hidden">
					<label>ModuleType</label>
				</input>
				<label>Settings</label>
				<input bind="cPosition" class="readonly">
					<label>Position</label>
				</input>
				<select1 bind="cModuleBox" class="boxStyle" appearance="minimal">
					<label>Box Style</label>
					<item>
						<label>None</label>
						<value>false</value>
					</item>
					<item>
						<label>Default Box</label>
						<value>Default Box</value>
					</item>
				</select1>
				<input bind="cModuleHeight" class="short">
					<label>Minimum Height</label>
				</input>
				<input bind="dPublishDate" class="calendar short">
					<label>Publish Date</label>
				</input>
				<input bind="dExpireDate" class="calendar short">
					<label>Expire Date</label>
				</input>
				<select1 bind="nStatus" appearance="full" class="required vshort">
					<label>Status</label>
					<item>
						<label>Live</label>
						<value>1</value>
					</item>
					<item>
						<label>Hidden</label>
						<value>0</value>
					</item>
				</select1>
			</group>
		</group>
		<group>
      <group>
			<label>Map Details</label>
				<input bind="cModuleTitle" class="long">
					<label>Title or Name</label>
				</input>
				<input bind="cAPIKey" class="long">
					<label>Google API Key</label>
					<help>
						<a href="http://www.google.com/apis/maps/signup.html" target="_new">Sign up here for an api key</a>
					</help>
				</input>
			<input bind="cAjaxAPIKey" class="long">
				<label>Google Ajax API Key</label>
				<help>
					<a href="http://code.google.com/apis/ajaxsearch/signup.html" target="_new">Sign up here for an ajax api key</a>
				</help>
			</input>
				<range bind="nZoom" start="1" end="17" step="1">
					<label>Zoom</label>
				</range>
				<select1 bind="cControl" appearance="full" class="required vshort">
					<label>Controls</label>
					<item>
						<label>Large</label>
						<value>Large</value>
					</item>
					<item>
						<label>Small</label>
						<value>Small</value>
					</item>
					<item>
						<label>None</label>
						<value>None</value>
					</item>
				</select1>
			<select1 bind="cView" appearance="full" class="required vshort">
				<label>View</label>
				<item>
					<label>Map</label>
					<value>G_NORMAL_MAP</value>
				</item>
				<item>
					<label>Satellite</label>
					<value>G_SATELLITE_MAP</value>
				</item>
				<item>
					<label>Hybrid</label>
					<value>G_HYBRID_MAP</value>
				</item>
			</select1>
			<select1 bind="bTypeButtons" appearance="full" class="required vshort">
					<label>Map Type Buttons</label>
					<item>
						<label>On</label>
						<value>On</value>
					</item>
					<item>
						<label>Off</label>
						<value>Off</value>
					</item>
				</select1>	
					<input bind="nLat" class="short">
						<label>Latitude</label>
					</input>
					<input bind="nLong" class="short">
						<label>Longitude</label>
					</input>
					<div>OR</div>
				<input bind="cGeoCode" class="short">
					<label>Postcode</label>
				</input>
				<select1 bind="cModuleLink" class="siteTree">
					<label>Link to Page</label>
				</select1>
				<textarea bind="cLabel" class="TextArea xhtml" rows="6" cols="70"/>
      </group>
		</group>
	</group>
	<group ref="submit" class="contentSubmit">
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save Google Map</label>
		</submit>
	</group>
</Content>
